﻿package model;

import org.hoyi.DB.comment.DbAttrANNO;
import org.hoyi.DB.comment.EntityAttrANNO;
import org.hoyi.DB.comment.datatype;
import org.hoyi.DB.ctrl.HOYI;
import org.hoyi.DB.ctrl.HOYICMD;
import org.hoyi.DB.ents.Entity;
import org.hoyi.DB.model.AttField;

/**
*  实体类 users 属性说明自动提取数据库字段的描述信息.
*/
@EntityAttrANNO(tablename="users", comment="用户")
public class users extends Entity{
	//#region 静态字段
	/// <summary>
	/// 用户编号
	/// </summary>
	public static AttField userid = new AttField("userid");		
	/// <summary>
	/// UUID
	/// </summary>
	public static AttField uxid = new AttField("uxid");		
	/// <summary>
	/// 用户名称
	/// </summary>
	public static AttField username = new AttField("username");		
	/// <summary>
	/// 用户类型
	/// </summary>
	public static AttField usertype = new AttField("usertype");		
	/// <summary>
	/// 创建时间
	/// </summary>
	public static AttField createtime = new AttField("createtime");		
	/// <summary>
	/// 备注
	/// </summary>
	public static AttField notes = new AttField("notes");		
	   
	//#endregion 静态字段
	
	
	//#region 字段
	/// <summary>
	/// 用户编号
	/// </summary>	
	@DbAttrANNO(type=datatype.Bigint,  Length = 30, Comment = "用户编号", FieldName = "userid",isPK= true,Identity=true)
	public String Userid ;		

	/// <summary>
	/// UUID
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 40, Comment = "UUID", FieldName = "uxid")
	public String Uxid ;		

	/// <summary>
	/// 用户名称
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 50, Comment = "用户名称", FieldName = "username")
	public String Username ;		

	/// <summary>
	/// 用户类型
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 50, Comment = "用户类型", FieldName = "usertype")
	public String Usertype ;		

	/// <summary>
	/// 创建时间
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 20, Comment = "创建时间", FieldName = "createtime")
	public String Createtime ;		

	/// <summary>
	/// 备注
	/// </summary>	
	@DbAttrANNO(type=datatype.Varchar,  Length = 50, Comment = "备注", FieldName = "notes", NotNULL = true)
	public String Notes ;		

	 
	
	
	/// <summary>
	/// 用户编号
	/// </summary>	
	
	public String getUserid(){
		if(this.Userid == null)
			return "";
		return this.Userid;
	}
	
	public void setUserid(String _userid)
	{
		this.Userid = _userid;
		
	}
	/// <summary>
	/// UUID
	/// </summary>	
	
	public String getUxid(){
		if(this.Uxid == null)
			return "";
		return this.Uxid;
	}
	
	public void setUxid(String _uxid)
	{
		this.Uxid = _uxid;
		
	}
	/// <summary>
	/// 用户名称
	/// </summary>	
	
	public String getUsername(){
		if(this.Username == null)
			return "";
		return this.Username;
	}
	
	public void setUsername(String _username)
	{
		this.Username = _username;
		
	}
	/// <summary>
	/// 用户类型
	/// </summary>	
	
	public String getUsertype(){
		if(this.Usertype == null)
			return "";
		return this.Usertype;
	}
	
	public void setUsertype(String _usertype)
	{
		this.Usertype = _usertype;
		
	}
	/// <summary>
	/// 创建时间
	/// </summary>	
	
	public String getCreatetime(){
		if(this.Createtime == null)
			return "";
		return this.Createtime;
	}
	
	public void setCreatetime(String _createtime)
	{
		this.Createtime = _createtime;
		
	}
	/// <summary>
	/// 备注
	/// </summary>	
	
	public String getNotes(){
		if(this.Notes == null)
			return "";
		return this.Notes;
	}
	
	public void setNotes(String _notes)
	{
		this.Notes = _notes;
		
	}
	 
	//#endregion 字段
	
				
	public static users NEW(){
		return new users();
	} 
	
	public users() {
	}
	
	public users( String _uxid ,  String _username ,  String _usertype ,  String _createtime ,  String _notes ){
		 this.Uxid =  _uxid;
		 this.Username =  _username;
		 this.Usertype =  _usertype;
		 this.Createtime =  _createtime;
		 this.Notes =  _notes;
		
	}	
	
	public users( String _userid ,  String _uxid ,  String _username ,  String _usertype ,  String _createtime ,  String _notes ){
		 this.Userid =  _userid;
		 this.Uxid =  _uxid;
		 this.Username =  _username;
		 this.Usertype =  _usertype;
		 this.Createtime =  _createtime;
		 this.Notes =  _notes;
		
	}	
	
	//#region 语法所迫, 初始化命令.
	
	public static HOYICMD E() {
			return HOYI.E(users.class);
	}
	
	@Override
	public String getFirstfield() {
		// TODO Auto-generated method stub
		return "userid";
	}
	
	@Override
	public String getSecondfield() {
		// TODO Auto-generated method stub
		return "uxid";
	}

	//#endregion 语法所迫, 初始化命令.
}
